﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PocketMahjong.Core
{
	public class Tile
	{
		private TileKind _kind;
		public TileKind Kind
		{
			get { return _kind; }
		}

		private int _number;
		public int Number
		{
			get { return _number; }
		}

		public Tile(TileKind kind, int number)
		{
			_kind = kind;
			_number = number;
		}

		public override string ToString()
		{
			string str = "";
			switch (Kind)
			{
				case TileKind.Bamboo: str = "B"; break;
				case TileKind.Character: str = "C"; break;
				case TileKind.Dot: str = "D"; break;
				case TileKind.Dragon: str = "R"; break;
				case TileKind.Flower: str = "F"; break;
				case TileKind.Season: str = "S"; break;
				case TileKind.Wind: str = "W"; break;
			}
			return string.Format("{0}{1}", str, Number);
		}
	}
}
